Optimal. Leaf size=29 \[ \frac{\tan ^5(x)}{5 a}+\frac{2 \tan ^3(x)}{3 a}+\frac{\tan (x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0516302, antiderivative size = 29, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3175, 3767} \[ \frac{\tan ^5(x)}{5 a}+\frac{2 \tan ^3(x)}{3 a}+\frac{\tan (x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 3767
Rubi steps
\begin{align*} \int \frac{\sec ^4(x)}{a-a \sin ^2(x)} \, dx &=\frac{\int \sec ^6(x) \, dx}{a}\\ &=-\frac{\operatorname{Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-\tan (x)\right )}{a}\\ &=\frac{\tan (x)}{a}+\frac{2 \tan ^3(x)}{3 a}+\frac{\tan ^5(x)}{5 a}\\ \end{align*}
Mathematica [A] time = 0.0042628, size = 31, normalized size = 1.07 \[ \frac{\frac{8 \tan (x)}{15}+\frac{1}{5} \tan (x) \sec ^4(x)+\frac{4}{15} \tan (x) \sec ^2(x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 20, normalized size = 0.7 \begin{align*}{\frac{1}{a} \left ({\frac{ \left ( \tan \left ( x \right ) \right ) ^{5}}{5}}+{\frac{2\, \left ( \tan \left ( x \right ) \right ) ^{3}}{3}}+\tan \left ( x \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.979178, size = 30, normalized size = 1.03 \begin{align*} \frac{3 \, \tan \left (x\right )^{5} + 10 \, \tan \left (x\right )^{3} + 15 \, \tan \left (x\right )}{15 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.83189, size = 76, normalized size = 2.62 \begin{align*} \frac{{\left (8 \, \cos \left (x\right )^{4} + 4 \, \cos \left (x\right )^{2} + 3\right )} \sin \left (x\right )}{15 \, a \cos \left (x\right )^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \frac{\int \frac{\sec ^{4}{\left (x \right )}}{\sin ^{2}{\left (x \right )} - 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16536, size = 30, normalized size = 1.03 \begin{align*} \frac{3 \, \tan \left (x\right )^{5} + 10 \, \tan \left (x\right )^{3} + 15 \, \tan \left (x\right )}{15 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]